package com.example.demo;

import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class test {
    @RequestMapping("/hi")
    public String SayHi(String name){
        if(!StringUtils.hasLength(name)){
            name = "张三";
        }
        return "你好" + name;
    }

}
